package com.zerous.staria.world;
import com.zerous.framework.*;
import com.zerous.staria.*;

public class World
{
	int terrain[][] = new int[10][10];
	Vector2 gravity;
	public World()
	{
		//gravity = new Vector2(0, 
		create_terrain();
		terrain[3][4] = 1;
		terrain[4][4] = 1;
	}
	
	public void draw()
	{
		draw_terrain();
	}
	
	private void create_terrain()
	{
		//TODO:
	}
	
	private void draw_terrain()
	{
		for(int x = 0;x < terrain.length;++x)
		{
			for(int y = 0;y < terrain[0].length;++y)
			{
				if(terrain[x][y] == 1)
					Zex.graphics.drawPixmap(Images.ONE, x * Images.ONE.getWidth(), y * Images.ONE.getHeight(), 255);
			}	
		}
	}
}
